package com.lelouch.examplecode.designpattern.strategy;

/**
 * @author lcy
 * @create 2018-10-10 17:50
 */
public class Order {

    private PaymentType paymentType;

    public Order(PaymentType paymentType){
        this.paymentType=paymentType;
    }

    public void assembleOrder(){
        PayResult payResult =  paymentType.pay(111,546.77);
        System.out.println(payResult);
    }
}
